

import {
    WalletOutlined
} from '@ant-design/icons';
import Home from "../page/home/Home";
import Index from "../page/index/Index";
import Error from '../page/error/Error';
import { lazy } from 'react';
// import My from "../page/my/My";
const My = lazy(() => import('../page/my/My'))


export const homerROuter = [
    {
        path: '/',
        element: <Index />,
        icon: <WalletOutlined />,
        title: '主页'
    },
    ,
    {
        path: '/my',
        element: <My />,
        icon: <WalletOutlined />,
        title: '我的'
    }
]
const router = [
    {
        path: '/',
        element: <Home />,
        icon: <WalletOutlined />,
        title: '主页',
        children: homerROuter
    },

        {
         path: '*',
        element: <Error />,
     
    }
]

export default router
